import request from '@/utils/request'

// 订单列表
export function getOrderList(data) {
  return request({
    url: '/api/order_list',
    method: 'POST',
    data,
  })
}

// 订单详情
export function orderDetail(data) {
  return request({
    url: '/api/order_detail',
    method: 'POST',
    data,
  })
}

// 快递
export function expressList(data) {
  return request({
    url: '/api/express_list',
    method: 'POST',
    data,
  })
}

// 创建订单
export function payHandle(data) {
  return request({
    url: '/api/pay_handle',
    method: 'POST',
    data,
  })
}

// 查询订单状态
export function getOrderStatus(params) {
  return request({
    url: '/api/payment/paystatus',
    method: 'GET',
    params,
  })
}

// 发货
export function sendOrder(data) {
  return request({
    url: '/api/send_order',
    method: 'POST',
    data,
  })
}

// 售后
export function createAfter(data) {
  return request({
    url: '/api/create_after',
    method: 'POST',
    data,
  })
}

// 售后lsit
export function afterList(data) {
  return request({
    url: '/api/after_list',
    method: 'POST',
    data,
  })
}

// 售后详情
export function afterDetail(data) {
  return request({
    url: '/api/after_detail',
    method: 'POST',
    data,
  })
}
// 申请退款审核
export function afterVerify(data) {
  return request({
    url: '/api/after_verify',
    method: 'POST',
    data,
  })
}

// 订单搜索条件
export function orderSearchCondition(data) {
  return request({
    url: '/api/order_search_condition',
    method: 'POST',
    data,
  })
}

//

// 订单导出
export function orderExport(data) {
  return request({
    url: '/api/order_export',
    method: 'POST',
    data,
  })
}

// 订单导出list
export function orderLog(data) {
  return request({
    url: '/api/export/order_log',
    method: 'POST',
    data,
  })
}

// 订单流水
export function transaction(data) {
  return request({
    url: '/api/transaction',
    method: 'POST',
    data,
  })
}

// 获取流水日志搜索参数
export function transactionSearchItem(data) {
  return request({
    url: '/api/transaction_search_item',
    method: 'POST',
    data,
  })
}
// hexiao
export function customerCardCheck(data) {
  return request({
    url: '/api/customer_card_check',
    method: 'POST',
    data,
  })
}
